package com.ddlaw.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ddlaw.dao.UserDao;
import com.ddlaw.entity.User;
import com.ddlaw.service.UserService;
@Service
@Transactional
public class UserServiceImpl implements UserService{

	@Resource
	UserDao userDao;
	
	@Override
	public User getByUsername(String username) {
		return userDao.getByUsername(username);
	}

	@Override
	public int updateType(int type, int userId) {
		// TODO Auto-generated method stub
		return userDao.updateType(type, userId);
	}
	
}
